/**   
 * @ClassName: HttpContextUtils.java 
 * @Package com.vrv.util 
 * @author LQ   
 * @date 2017年5月12日 下午6:42:03 
 * @version V1.0
 */
package com.vrv.util;

import javax.servlet.http.HttpServletRequest;

import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;

/** 
 * httpContext辅助类
 * @author LQ 
 */
public class HttpContextUtils {
    
    public static HttpServletRequest getHttpServletRequest() {
        return ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest();
    }
    
}
